﻿using UnityEngine;

namespace HotPlayer.Physic2D
{
    public class Circle : Shape2D
    {
        public Vector2 center;
        
        public float radius;
        
        public override Vector2 GetFarthestPointInDirection(Vector2 direction)
        {
            return center + radius * direction;
        }

        public override Vector2 AveragePoint()
        {
            return center;
        }
    }
}